home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 050 / tbvideo.arc / WRITELIN.INC < prev    next >
Text File  |  1985-02-22  |  768b  |  26 lines

  1.  
  2. Procedure Writelin(long_string:maxstr; color: integer);
  3.  
  4. var screen_array: Array[1..4000] of byte Absolute $B800:$0000;
  5.     scr_pos,str_len, real_pos: integer;
  6.  
  7. begin
  8. {$I-}
  9.      str_len:=length(long_string);
  10.      scr_pos:=1;
  11.      for real_pos:=1 to str_len do
  12.                        begin
  13.                             screen_array[line_pos+scr_pos]:=ord(copy(long_string,real_pos,1));
  14.                             screen_array[line_pos+scr_pos+1]:=color;
  15.                             scr_pos:=scr_pos+2;
  16.                        end;
  17.     line_pos:=line_pos+160;
  18.     if line_pos > 3800 then
  19.                        begin
  20.                             clrscr;
  21.                             line_pos:=0;
  22.                        end
  23. {$I+}
  24. end;
  25.  
  26.